Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Js API #121

Merged
merged 4 commits into from
Jan 18, 2024
Merged

feat: Add Js API #121

merged 4 commits into from
Jan 18, 2024

Conversation

enricocolasante
Copy link
Collaborator

No description provided.

Copy link
Contributor

@jbee jbee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You made quick work out of it :)

src/jsMain/kotlin/org/hisp/dhis/rules/Logger.kt Outdated Show resolved Hide resolved
@JsExport
@OptIn(ExperimentalJsExport::class)
data class RuleDataValueJs(
val eventDate: Instant,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this means Instant can be used

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's interesting, it comes from JSJoda.Instant

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how this works for frontenders

package org.hisp.dhis.rules

import kotlinx.datetime.internal.JSJoda.Instant
import kotlinx.datetime.internal.JSJoda.LocalDate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I didn't know about it

@enricocolasante enricocolasante merged commit 958ba19 into master Jan 18, 2024
2 checks passed
@enricocolasante enricocolasante deleted the js_interface branch January 18, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants